<?php /* Smarty version 2.6.26, created on 2010-11-29 10:34:26
         compiled from photo_list.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>相册</title>
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/base.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/common.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/page.css" rel="stylesheet" />
</head>

<body>
<div class="wrap">
  <!-- 头部 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /头部 --> 
  <div class="main">
     <div class="mainContent">
        <div class="title-long"><h3 class="ml20 ffs f18 fb">相册</h3></div>
        <div class="photoList">
          <p class="ml30 f12 mt10">共<?php echo $this->_tpl_vars['pt_count']; ?>
张相片<?php if ($this->_tpl_vars['logined']): ?><a href="photo.php?style=photoupload"><input type="button" class="buttonLong" value="上传相片" /></a><?php endif; ?></p>
          <ul>
          <?php unset($this->_sections['photos']);
$this->_sections['photos']['name'] = 'photos';
$this->_sections['photos']['loop'] = is_array($_loop=$this->_tpl_vars['photos']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['photos']['show'] = true;
$this->_sections['photos']['max'] = $this->_sections['photos']['loop'];
$this->_sections['photos']['step'] = 1;
$this->_sections['photos']['start'] = $this->_sections['photos']['step'] > 0 ? 0 : $this->_sections['photos']['loop']-1;
if ($this->_sections['photos']['show']) {
    $this->_sections['photos']['total'] = $this->_sections['photos']['loop'];
    if ($this->_sections['photos']['total'] == 0)
        $this->_sections['photos']['show'] = false;
} else
    $this->_sections['photos']['total'] = 0;
if ($this->_sections['photos']['show']):

            for ($this->_sections['photos']['index'] = $this->_sections['photos']['start'], $this->_sections['photos']['iteration'] = 1;
                 $this->_sections['photos']['iteration'] <= $this->_sections['photos']['total'];
                 $this->_sections['photos']['index'] += $this->_sections['photos']['step'], $this->_sections['photos']['iteration']++):
$this->_sections['photos']['rownum'] = $this->_sections['photos']['iteration'];
$this->_sections['photos']['index_prev'] = $this->_sections['photos']['index'] - $this->_sections['photos']['step'];
$this->_sections['photos']['index_next'] = $this->_sections['photos']['index'] + $this->_sections['photos']['step'];
$this->_sections['photos']['first']      = ($this->_sections['photos']['iteration'] == 1);
$this->_sections['photos']['last']       = ($this->_sections['photos']['iteration'] == $this->_sections['photos']['total']);
?>
            <li><a href="photo.php?style=photo&id=<?php echo $this->_tpl_vars['photos'][$this->_sections['photos']['index']]['ptID']; ?>
"><div class="img"><img src="<?php echo $this->_tpl_vars['url_path']; ?>
<?php echo $this->_tpl_vars['photos'][$this->_sections['photos']['index']]['dpath']; ?>
"/></div><p class="tc mt5"><?php echo $this->_tpl_vars['photos'][$this->_sections['photos']['index']]['pt_intro']; ?>
</p></a></li>
          <?php endfor; endif; ?>
          </ul>
        </div>
        <p class="mt10 ml10"><?php echo $this->_tpl_vars['pagenav']; ?>
</p>
        <!-- <div class="mt30 ml30">
           <h4 class="f12">评论相册：</h4>
           <div class="mt5"><img src="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/images/head-photo.jpg" /><form action="" method="get" class="fr mr50"><textarea name="" cols="" rows="" class="comment"></textarea><br /><input name="" type="button" value="确定" class="buttonShort mt10" /></form></div>
        </div> -->
     </div>
  <!-- 导航 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /导航 -->
  </div>
  <!-- 页脚 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /页脚 --> 
</div>
</body>
</html>